package com.guandi.geekbrowser.primary.repository;

import com.guandi.geekbrowser.primary.entity.Task;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TaskRepository extends JpaRepository<Task,Long> {

    Task findByNameAndUserId(String name, String userId);

    List<Task> findByNameAndUserIdAndType(String name, String userId,Integer type);

    List<Task> findByUserIdAndType(String userId,Integer type);

    List<Task> findByUserIdAndTypeAndCountry(String userId,Integer type,String country);
}
